#!/bin/bash

read -p "Please input commit comment:" COMMENT
if [ -z "$COMMENT" ]; then                       # 如果 COMMENT 变量为空
  COMMENT="default"                                  # 给 COMMENT 变量赋默认值
fi
cd .
git pull
git git merge master
git add *
git commit -a -m "$COMMENT"
git push -u origin master